package com.demo.redission.service.goods.impl;

import com.demo.redission.annotation.RedissonLock;
import com.demo.redission.service.goods.IGoodsService;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl implements IGoodsService {

    @Override
    @RedissonLock(key = "#id")
    public void LockTest(Integer id) {
        System.out.println(id);
    }
}
